package com.example.kafkap1.Controller;

import com.example.kafkap1.Service.SendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author CHENTAIWEN
 * @create 2022/8/24 9:07
 */
@RestController
public class PController {

    @Autowired
    private SendService sendService;


    @GetMapping("/send/{msg}")
    public void send(@PathVariable("msg") String msg) {
        sendService.sendMsg(msg);
    }
}
